import request from '@/utils/request'

// 查询所有医生列表
export function listYyybehinddoctor(query) {
  return request({
    url: '/behindDoctor/yyybehinddoctor/list',
    method: 'get',
    params: query
  })
}

// 查询所有医生详细
export function getYyybehinddoctor(userId) {
  return request({
    url: '/behindDoctor/yyybehinddoctor/' + userId,
    method: 'get'
  })
}

// 新增所有医生
export function addYyybehinddoctor(data) {
  return request({
    url: '/behindDoctor/yyybehinddoctor',
    method: 'post',
    data: data
  })
}

// 修改所有医生
export function updateYyybehinddoctor(data) {
  return request({
    url: '/behindDoctor/yyybehinddoctor',
    method: 'put',
    data: data
  })
}

// 删除所有医生
export function delYyybehinddoctor(userId) {
  return request({
    url: '/behindDoctor/yyybehinddoctor/' + userId,
    method: 'delete'
  })
}


